<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="//cdn.datatables.net/1.10.2/css/jquery.dataTables.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script src="//cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js" type="text/javascript" ></script>
<script language = "javascript" >
$(document).ready(function(){
    $('#myTable').dataTable();
});

</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="">

  <br />
  <input type="submit" name="button" id="button" value="Submit" />
  <br />
  <table width="800" border="1" cellspacing="0" cellpadding="10" id="myTable">
  <thead>
    <tr>
    <th scope="col">Cot</th>
      <th scope="col">APOS LOGIN</th>
      <th scope="col">SHOP</th>
      <th scope="col">ID</th>
    </tr>
  </thead> 
    <tfoot>
    <tr>
    <th scope="col">Cot</th>
      <th scope="col">APOS LOGIN</th>
      <th scope="col">SHOP</th>
      <th scope="col">ID</th>
    </tr>
  </tfoot>
  <tbody> 
    <?php foreach($this->arrRes as $key => $v) {?>
    <tr>
      <td><?php echo $key + 1 ;?></td>
      <td><?php echo $v['sal_code']?></td>
      <td><?php echo $v['shop_code']?></td>
      <td><input name="id[<?php echo $v['id']?>]" type="text" id="id<?php echo $key + 1 ;?>" maxlength="4" style="width:50px;" /></td>
    </tr>
    <?php }?>
    </tbody>
  </table>
  <p><br />
    <br />
  </p>
</form>
</body>
</html>
